﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001205 RID: 4613
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class StartBattleCollegeScRsp : IMessage<StartBattleCollegeScRsp>, IMessage, IEquatable<StartBattleCollegeScRsp>, IDeepCloneable<StartBattleCollegeScRsp>, IBufferMessage
	{
		// Token: 0x17003A6B RID: 14955
		// (get) Token: 0x0600CEAF RID: 52911 RVA: 0x0022C90B File Offset: 0x0022AB0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<StartBattleCollegeScRsp> Parser
		{
			get
			{
				return StartBattleCollegeScRsp._parser;
			}
		}

		// Token: 0x17003A6C RID: 14956
		// (get) Token: 0x0600CEB0 RID: 52912 RVA: 0x0022C912 File Offset: 0x0022AB12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return StartBattleCollegeScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003A6D RID: 14957
		// (get) Token: 0x0600CEB1 RID: 52913 RVA: 0x0022C924 File Offset: 0x0022AB24
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return StartBattleCollegeScRsp.Descriptor;
			}
		}

		// Token: 0x0600CEB2 RID: 52914 RVA: 0x0022C92B File Offset: 0x0022AB2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartBattleCollegeScRsp()
		{
		}

		// Token: 0x0600CEB3 RID: 52915 RVA: 0x0022C934 File Offset: 0x0022AB34
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartBattleCollegeScRsp(StartBattleCollegeScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.id_ = other.id_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600CEB4 RID: 52916 RVA: 0x0022C98C File Offset: 0x0022AB8C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public StartBattleCollegeScRsp Clone()
		{
			return new StartBattleCollegeScRsp(this);
		}

		// Token: 0x17003A6E RID: 14958
		// (get) Token: 0x0600CEB5 RID: 52917 RVA: 0x0022C994 File Offset: 0x0022AB94
		// (set) Token: 0x0600CEB6 RID: 52918 RVA: 0x0022C99C File Offset: 0x0022AB9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17003A6F RID: 14959
		// (get) Token: 0x0600CEB7 RID: 52919 RVA: 0x0022C9A5 File Offset: 0x0022ABA5
		// (set) Token: 0x0600CEB8 RID: 52920 RVA: 0x0022C9AD File Offset: 0x0022ABAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17003A70 RID: 14960
		// (get) Token: 0x0600CEB9 RID: 52921 RVA: 0x0022C9B6 File Offset: 0x0022ABB6
		// (set) Token: 0x0600CEBA RID: 52922 RVA: 0x0022C9BE File Offset: 0x0022ABBE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600CEBB RID: 52923 RVA: 0x0022C9C7 File Offset: 0x0022ABC7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as StartBattleCollegeScRsp);
		}

		// Token: 0x0600CEBC RID: 52924 RVA: 0x0022C9D8 File Offset: 0x0022ABD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(StartBattleCollegeScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.Id == other.Id && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600CEBD RID: 52925 RVA: 0x0022CA38 File Offset: 0x0022AC38
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600CEBE RID: 52926 RVA: 0x0022CAA6 File Offset: 0x0022ACA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600CEBF RID: 52927 RVA: 0x0022CAAE File Offset: 0x0022ACAE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600CEC0 RID: 52928 RVA: 0x0022CAB8 File Offset: 0x0022ACB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.Id != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Id);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600CEC1 RID: 52929 RVA: 0x0022CB30 File Offset: 0x0022AD30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600CEC2 RID: 52930 RVA: 0x0022CBA0 File Offset: 0x0022ADA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(StartBattleCollegeScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600CEC3 RID: 52931 RVA: 0x0022CC1C File Offset: 0x0022AE1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600CEC4 RID: 52932 RVA: 0x0022CC28 File Offset: 0x0022AE28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 26U)
					{
						if (num != 64U)
						{
							this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
						}
						else
						{
							this.Id = input.ReadUInt32();
						}
					}
					else
					{
						if (this.battleInfo_ == null)
						{
							this.BattleInfo = new SceneBattleInfo();
						}
						input.ReadMessage(this.BattleInfo);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x040052DB RID: 21211
		private static readonly MessageParser<StartBattleCollegeScRsp> _parser = new MessageParser<StartBattleCollegeScRsp>(() => new StartBattleCollegeScRsp());

		// Token: 0x040052DC RID: 21212
		private UnknownFieldSet _unknownFields;

		// Token: 0x040052DD RID: 21213
		public const int BattleInfoFieldNumber = 3;

		// Token: 0x040052DE RID: 21214
		private SceneBattleInfo battleInfo_;

		// Token: 0x040052DF RID: 21215
		public const int IdFieldNumber = 8;

		// Token: 0x040052E0 RID: 21216
		private uint id_;

		// Token: 0x040052E1 RID: 21217
		public const int RetcodeFieldNumber = 2;

		// Token: 0x040052E2 RID: 21218
		private uint retcode_;
	}
}
